/* Copyright Statement:
 *
 * This software/firmware and related documentation ("MediaTek Software") are
 * protected under relevant copyright laws. The information contained herein is
 * confidential and proprietary to MediaTek Inc. and/or its licensors. Without
 * the prior written permission of MediaTek inc. and/or its licensors, any
 * reproduction, modification, use or disclosure of MediaTek Software, and
 * information contained herein, in whole or in part, shall be strictly
 * prohibited.
 *
 * MediaTek Inc. (C) 2018. All rights reserved.
 *
 * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
 * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
 * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER
 * ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL
 * WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
 * NONINFRINGEMENT. NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH
 * RESPECT TO THE SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY,
 * INCORPORATED IN, OR SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES
 * TO LOOK ONLY TO SUCH THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO.
 * RECEIVER EXPRESSLY ACKNOWLEDGES THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO
 * OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES CONTAINED IN MEDIATEK
 * SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE
 * RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
 * STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S
 * ENTIRE AND CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE
 * RELEASED HEREUNDER WILL BE, AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE
 * MEDIATEK SOFTWARE AT ISSUE, OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE
 * CHARGE PAID BY RECEIVER TO MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
 *
 * The following software/firmware and/or related documentation ("MediaTek
 * Software") have been modified by MediaTek Inc. All revisions are subject to
 * any receiver's applicable license agreements with MediaTek Inc.
 */
#ifndef __PMIC_WRAP_REGS_HMAC__
#define __PMIC_WRAP_REGS_HMAC__

#define GET_MUX_SEL(x)               ((x>>0)  & 0x00000001)
#define GET_WRAP_EN(x)               ((x>>0)  & 0x00000001)
#define GET_DIO_EN0(x)               ((x>>0)  & 0x00000001)
#define GET_DIO_EN1(x)               ((x>>1)  & 0x00000001)
#define GET_PMIC_0_SI_DLY_SEL(x)     ((x>>0)  & 0x0000001f)
#define GET_PMIC_0_SI_CK_SEL(x)      ((x>>5)  & 0x00000001)
#define GET_PMIC_0_SI_EN_SEL(x)      ((x>>6)  & 0x00000007)
#define GET_PMIC_1_SI_DLY_SEL(x)     ((x>>9)  & 0x0000001f)
#define GET_PMIC_1_SI_CK_SEL(x)      ((x>>14) & 0x00000001)
#define GET_PMIC_1_SI_EN_SEL(x)      ((x>>15) & 0x00000007)
#define GET_DUAL_PMIC_SI_SAMPLE_CTRL_EN(x)  ((x>>18) & 0x00000001)
#define GET_SI_SAMPLING_USING_LOCAL_SI_CK(x)  ((x>>19) & 0x00000001)
#define GET_PMIC_0_SI_DLY_SEL_1(x)   ((x>>0)  & 0x0000001f)
#define GET_PMIC_0_SI_CK_SEL_1(x)    ((x>>5)  & 0x00000001)
#define GET_PMIC_0_SI_EN_SEL_1(x)    ((x>>6)  & 0x00000007)
#define GET_PMIC_1_SI_DLY_SEL_1(x)   ((x>>9)  & 0x0000001f)
#define GET_PMIC_1_SI_CK_SEL_1(x)    ((x>>14) & 0x00000001)
#define GET_PMIC_1_SI_EN_SEL_1(x)    ((x>>15) & 0x00000007)
#define GET_DUAL_PMIC_SI_SAMPLE_CTRL_1_EN(x)  ((x>>18) & 0x00000001)
#define GET_SI_SAMPLE_CTRL_1_EN(x)   ((x>>19) & 0x00000001)
#define GET_PMIC_0_SI_DLY_SEL_2(x)   ((x>>0)  & 0x0000001f)
#define GET_PMIC_0_SI_CK_SEL_2(x)    ((x>>5)  & 0x00000001)
#define GET_PMIC_0_SI_EN_SEL_2(x)    ((x>>6)  & 0x00000007)
#define GET_PMIC_1_SI_DLY_SEL_2(x)   ((x>>9)  & 0x0000001f)
#define GET_PMIC_1_SI_CK_SEL_2(x)    ((x>>14) & 0x00000001)
#define GET_PMIC_1_SI_EN_SEL_2(x)    ((x>>15) & 0x00000007)
#define GET_DUAL_PMIC_SI_SAMPLE_CTRL_2_EN(x)  ((x>>18) & 0x00000001)
#define GET_SI_SAMPLE_CTRL_2_EN(x)   ((x>>19) & 0x00000001)
#define GET_PMIC_0_SI_DLY_SEL_3(x)   ((x>>0)  & 0x0000001f)
#define GET_PMIC_0_SI_CK_SEL_3(x)    ((x>>5)  & 0x00000001)
#define GET_PMIC_0_SI_EN_SEL_3(x)    ((x>>6)  & 0x00000007)
#define GET_PMIC_1_SI_DLY_SEL_3(x)   ((x>>9)  & 0x0000001f)
#define GET_PMIC_1_SI_CK_SEL_3(x)    ((x>>14) & 0x00000001)
#define GET_PMIC_1_SI_EN_SEL_3(x)    ((x>>15) & 0x00000007)
#define GET_DUAL_PMIC_SI_SAMPLE_CTRL_3_EN(x)  ((x>>18) & 0x00000001)
#define GET_SI_SAMPLE_CTRL_3_EN(x)   ((x>>19) & 0x00000001)
#define GET_PMIC_0_SI_DLY_SEL_ULPOSC(x)  ((x>>0)  & 0x0000001f)
#define GET_PMIC_0_SI_CK_SEL_ULPOSC(x)  ((x>>5)  & 0x00000001)
#define GET_PMIC_0_SI_EN_SEL_ULPOSC(x)  ((x>>6)  & 0x00000007)
#define GET_PMIC_1_SI_DLY_SEL_ULPOSC(x)  ((x>>9)  & 0x0000001f)
#define GET_PMIC_1_SI_CK_SEL_ULPOSC(x)  ((x>>14) & 0x00000001)
#define GET_PMIC_1_SI_EN_SEL_ULPOSC(x)  ((x>>15) & 0x00000007)
#define GET_DUAL_PMIC_SI_SAMPLE_CTRL_ULPOSC_EN(x)  ((x>>18) & 0x00000001)
#define GET_SI_SAMPLE_CTRL_ULPOSC_EN(x)  ((x>>19) & 0x00000001)
#define GET_RDDMY0(x)                ((x>>0)  & 0x000000ff)
#define GET_RDDMY1(x)                ((x>>8)  & 0x000000ff)
#define GET_CSHEXT_WRITE_START(x)    ((x>>0)  & 0x000000ff)
#define GET_CSHEXT_WRITE_END(x)      ((x>>8)  & 0x000000ff)
#define GET_CSHEXT_READ_START(x)     ((x>>0)  & 0x000000ff)
#define GET_CSHEXT_READ_END(x)       ((x>>8)  & 0x000000ff)
#define GET_CSLEXT_WRITE_START(x)    ((x>>0)  & 0x000000ff)
#define GET_CSLEXT_WRITE_END(x)      ((x>>8)  & 0x000000ff)
#define GET_CSLEXT_READ_START(x)     ((x>>0)  & 0x000000ff)
#define GET_CSLEXT_READ_END(x)       ((x>>8)  & 0x000000ff)
#define GET_EXT_CK_WRITE(x)          ((x>>0)  & 0x000000ff)
#define GET_EXT_CK_READ(x)           ((x>>0)  & 0x000000ff)
#define GET_STAUPD_PRD(x)            ((x>>0)  & 0x0000000f)
#define GET_STAUPD_FETCH_ALL(x)      ((x>>4)  & 0x00000001)
#define GET_STAUPD_GRPEN(x)          ((x>>0)  & 0x000001ff)
#define GET_EINT_STA0_ADR(x)         ((x>>0)  & 0x0000ffff)
#define GET_EINT_STA1_ADR(x)         ((x>>0)  & 0x0000ffff)
#define GET_EINT_STA(x)              ((x>>0)  & 0x0000000f)
#define GET_EINT_CLR(x)              ((x>>0)  & 0x0000000f)
#define GET_VALID_SRCLK_EN_CTRL(x)   ((x>>0)  & 0x00000001)
#define GET_VALID_SRVOL_EN_CTRL(x)   ((x>>1)  & 0x00000001)
#define GET_SPI_MODE_CTRL(x)         ((x>>2)  & 0x0000000f)
#define GET_HARB_SPI_EINT_MODE_GATING(x)  ((x>>6)  & 0x00000001)
#define GET_PMIC_EINT_OUT_0_SRC_SEL_NORMAL(x)  ((x>>7)  & 0x00000003)
#define GET_PMIC_EINT_OUT_0_SRC_SEL_SLEEP(x)  ((x>>9)  & 0x00000001)
#define GET_PMIC_EINT_OUT_1_SRC_SEL_NORMAL(x)  ((x>>10) & 0x00000003)
#define GET_PMIC_EINT_OUT_1_SRC_SEL_SLEEP(x)  ((x>>12) & 0x00000001)
#define GET_PMIC_EINT_SCP_SRC_SEL_NORMAL(x)  ((x>>13) & 0x00000003)
#define GET_PMIC_EINT_SCP_SRC_SEL_SLEEP(x)  ((x>>15) & 0x00000001)
#define GET_SPM_PMIC_EINT_ACK_STAUPD_NO_SEL(x)  ((x>>16) & 0x0000000f)
#define GET_STAUPD_MAN_TRIG(x)       ((x>>0)  & 0x00000001)
#define GET_STAUPD_DLE_CNT(x)        ((x>>0)  & 0x0000000f)
#define GET_STAUPD_ALE_CNT(x)        ((x>>4)  & 0x0000000f)
#define GET_GRP_REQ_PENDING(x)       ((x>>8)  & 0x000001ff)
#define GET_GRP_DATA_PENDING(x)      ((x>>17) & 0x000001ff)
#define GET_STAUPD_FSM(x)            ((x>>26) & 0x00000007)
#define GET_WRAP_CH_DLE_RESTCNT(x)   ((x>>0)  & 0x00000007)
#define GET_WRAP_CH_ALE_RESTCNT(x)   ((x>>3)  & 0x00000003)
#define GET_WRAP_AG_DLE_RESTCNT(x)   ((x>>5)  & 0x00000003)
#define GET_WRAP_CH_W(x)             ((x>>7)  & 0x00000001)
#define GET_WRAP_CH_REQ(x)           ((x>>8)  & 0x00000001)
#define GET_AG_WRAP_W(x)             ((x>>9)  & 0x00000001)
#define GET_AG_WRAP_REQ(x)           ((x>>10) & 0x00000001)
#define GET_WRAP_FSM(x)              ((x>>11) & 0x0000000f)
#define GET_HARB_INIT(x)             ((x>>0)  & 0x00000001)
#define GET_HARB_HPRIO(x)            ((x>>0)  & 0x0001ffff)
#define GET_WACS0_HARB_EN(x)         ((x>>0)  & 0x00000001)
#define GET_WACS1_HARB_EN(x)         ((x>>1)  & 0x00000001)
#define GET_WACS2_HARB_EN(x)         ((x>>2)  & 0x00000001)
#define GET_WACS3_HARB_EN(x)         ((x>>3)  & 0x00000001)
#define GET_WACS_P2P_HARB_EN(x)      ((x>>4)  & 0x00000001)
#define GET_WACS_MD32_HARB_EN(x)     ((x>>5)  & 0x00000001)
#define GET_MDINF_HARB_EN(x)         ((x>>6)  & 0x00000001)
#define GET_C2KINF_HARB_EN(x)        ((x>>7)  & 0x00000001)
#define GET_MD_DVFSINF_HARB_EN(x)    ((x>>8)  & 0x00000001)
#define GET_SPMINF_HARB_EN(x)        ((x>>9)  & 0x00000001)
#define GET_SPMINF_BACKUP_HARB_EN(x)  ((x>>10) & 0x00000001)
#define GET_SRCLKEN_RCINF_HARB_EN(x)  ((x>>11) & 0x00000001)
#define GET_DCXO_CONNINF_HARB_EN(x)  ((x>>12) & 0x00000001)
#define GET_DCXO_NFCINF_HARB_EN(x)   ((x>>13) & 0x00000001)
#define GET_MCU_PMINF_HARB_EN(x)     ((x>>14) & 0x00000001)
#define GET_MD_ADCINF_0_HARB_EN(x)   ((x>>15) & 0x00000001)
#define GET_MD_ADCINF_1_HARB_EN(x)   ((x>>16) & 0x00000001)
#define GET_GPSINF_0_HARB_EN(x)      ((x>>17) & 0x00000001)
#define GET_GPSINF_1_HARB_EN(x)      ((x>>18) & 0x00000001)
#define GET_STAUPD_HARB_EN(x)        ((x>>19) & 0x00000001)
#define GET_HARB_WRAP_WDATA(x)       ((x>>0)  & 0x0000ffff)
#define GET_HARB_WRAP_ADR(x)         ((x>>16) & 0x00007fff)
#define GET_HARB_WRAP_W(x)           ((x>>31) & 0x00000001)
#define GET_AG_HARB_REQ(x)           ((x>>0)  & 0x0001ffff)
#define GET_HARB_WRAP_REQ(x)         ((x>>31) & 0x00000001)
#define GET_HARB_DLE_EMPTY(x)        ((x>>0)  & 0x00000001)
#define GET_HARB_DLE_FULL(x)         ((x>>1)  & 0x00000001)
#define GET_HARB_VLD(x)              ((x>>2)  & 0x00000001)
#define GET_HARB_DLE_OWN(x)          ((x>>3)  & 0x0000001f)
#define GET_HARB_OWN(x)              ((x>>8)  & 0x0000001f)
#define GET_HARB_DLE_RESTCNT(x)      ((x>>13) & 0x0000000f)
#define GET_MAN_EN(x)                ((x>>0)  & 0x00000001)
#define GET_SPI_WDATA(x)             ((x>>0)  & 0x000000ff)
#define GET_SPI_OP(x)                ((x>>8)  & 0x0000001f)
#define GET_SPI_W(x)                 ((x>>13) & 0x00000001)
#define GET_MAN_RDATA(x)             ((x>>0)  & 0x000000ff)
#define GET_MAN_FSM(x)               ((x>>8)  & 0x00000007)
#define GET_MAN_REQ(x)               ((x>>11) & 0x00000001)
#define GET_MAN_VLDCLR(x)            ((x>>0)  & 0x00000001)
#define GET_WACS0_EN(x)              ((x>>0)  & 0x00000001)
#define GET_INIT_DONE0(x)            ((x>>0)  & 0x00000001)
#define GET_WACS1_EN(x)              ((x>>0)  & 0x00000001)
#define GET_INIT_DONE1(x)            ((x>>0)  & 0x00000001)
#define GET_WACS2_EN(x)              ((x>>0)  & 0x00000001)
#define GET_INIT_DONE2(x)            ((x>>0)  & 0x00000001)
#define GET_WACS3_EN(x)              ((x>>0)  & 0x00000001)
#define GET_INIT_DONE3(x)            ((x>>0)  & 0x00000001)
#define GET_WACS_P2P_EN(x)           ((x>>0)  & 0x00000001)
#define GET_INIT_DONE_P2P(x)         ((x>>0)  & 0x00000001)
#define GET_WACS_MD32_EN(x)          ((x>>0)  & 0x00000001)
#define GET_INIT_DONE_MD32(x)        ((x>>0)  & 0x00000001)
#define GET_INT0_EN(x)               ((x>>0)  & 0x00000000)
#define GET_INT0_FLG_RAW(x)          ((x>>0)  & 0x00000000)
#define GET_INT0_FLG(x)              ((x>>0)  & 0x00000000)
#define GET_INT0_CLR(x)              ((x>>0)  & 0x00000000)
#define GET_INT1_EN(x)               ((x>>0)  & 0x00000000)
#define GET_INT1_FLG_RAW(x)          ((x>>0)  & 0x00000000)
#define GET_INT1_FLG(x)              ((x>>0)  & 0x00000000)
#define GET_INT1_CLR(x)              ((x>>0)  & 0x00000000)
#define GET_SIG_ADR0(x)              ((x>>0)  & 0x0000ffff)
#define GET_SIG_ADR1(x)              ((x>>16) & 0x0000ffff)
#define GET_SIG_MODE0(x)             ((x>>0)  & 0x00000001)
#define GET_SIG_MODE1(x)             ((x>>1)  & 0x00000001)
#define GET_SIG_VALUE0(x)            ((x>>0)  & 0x0000ffff)
#define GET_SIG_VALUE1(x)            ((x>>16) & 0x0000ffff)
#define GET_SIG_ERRVAL0(x)           ((x>>0)  & 0x0000ffff)
#define GET_SIG_ERRVAL1(x)           ((x>>16) & 0x0000ffff)
#define GET_CRC_EN(x)                ((x>>0)  & 0x00000001)
#define GET_TIMER_CLK_EN(x)          ((x>>0)  & 0x00000001)
#define GET_TIMER_CLK_AUTO_GATING_EN(x)  ((x>>1)  & 0x00000001)
#define GET_TIMER_CLK_AUTO_GATING_CTRL(x)  ((x>>2)  & 0x00000003)
#define GET_STAUPD_TIMER_RESET(x)    ((x>>4)  & 0x00000001)
#define GET_WDT_TIMER_RESET(x)       ((x>>5)  & 0x00000001)
#define GET_STAUPD_TIMER(x)          ((x>>0)  & 0x00001fff)
#define GET_WDT_TIMER(x)             ((x>>16) & 0x0000ffff)
#define GET_WDT_UNIT_SEL(x)          ((x>>0)  & 0x0000000f)
#define GET_WDT_PRD(x)               ((x>>4)  & 0x000000ff)
#define GET_WDT_SRC_EN_0(x)          ((x>>0)  & 0x00000000)
#define GET_WDT_SRC_EN_1(x)          ((x>>0)  & 0x00000000)
#define GET_WDT_FLG_0(x)             ((x>>0)  & 0x00000000)
#define GET_WDT_FLG_1(x)             ((x>>0)  & 0x00000000)
#define GET_DEBUG_INT_SEL(x)         ((x>>0)  & 0x00000007)
#define GET_DVFS_ADR0(x)             ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA0(x)           ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR1(x)             ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA1(x)           ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR2(x)             ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA2(x)           ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR3(x)             ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA3(x)           ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR4(x)             ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA4(x)           ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR5(x)             ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA5(x)           ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR6(x)             ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA6(x)           ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR7(x)             ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA7(x)           ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR8(x)             ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA8(x)           ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR9(x)             ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA9(x)           ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR10(x)            ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA10(x)          ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR11(x)            ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA11(x)          ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR12(x)            ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA12(x)          ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR13(x)            ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA13(x)          ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR14(x)            ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA14(x)          ((x>>0)  & 0x0000ffff)
#define GET_DVFS_ADR15(x)            ((x>>0)  & 0x0000ffff)
#define GET_DVFS_WDATA15(x)          ((x>>0)  & 0x0000ffff)
#define GET_DCXO_NFC_ENABLE(x)       ((x>>0)  & 0x00000001)
#define GET_DCXO_CONN_ENABLE(x)      ((x>>1)  & 0x00000001)
#define GET_DCXO_CONN_ADR0(x)        ((x>>0)  & 0x0000ffff)
#define GET_DCXO_CONN_WDATA0(x)      ((x>>0)  & 0x0000ffff)
#define GET_DCXO_CONN_ADR1(x)        ((x>>0)  & 0x0000ffff)
#define GET_DCXO_CONN_WDATA1(x)      ((x>>0)  & 0x0000ffff)
#define GET_DCXO_NFC_ADR0(x)         ((x>>0)  & 0x0000ffff)
#define GET_DCXO_NFC_WDATA0(x)       ((x>>0)  & 0x0000ffff)
#define GET_DCXO_NFC_ADR1(x)         ((x>>0)  & 0x0000ffff)
#define GET_DCXO_NFC_WDATA1(x)       ((x>>0)  & 0x0000ffff)
#define GET_SPM_PWRAP_REQ(x)         ((x>>0)  & 0x00000001)
#define GET_PWRAP_SPM_ACK(x)         ((x>>1)  & 0x00000001)
#define GET_SPM_PMIC_EINT_REQ(x)     ((x>>2)  & 0x00000001)
#define GET_SPM_PMIC_EINT_ACK(x)     ((x>>3)  & 0x00000001)
#define GET_SPM_SLEEP_REQ(x)         ((x>>4)  & 0x00000001)
#define GET_SPM_SLEEP_ACK(x)         ((x>>5)  & 0x00000001)
#define GET_SPM_PWRAP_ADR(x)         ((x>>0)  & 0x0000ffff)
#define GET_SPM_PWRAP_WDATA(x)       ((x>>16) & 0x0000ffff)
#define GET_SPM_PWRAP_DVFS_CTRL_RDY(x)  ((x>>0)  & 0x00000001)
#define GET_SPM_PWRAP_DVFS_CTRL(x)   ((x>>1)  & 0x0000000f)
#define GET_PWRAP_SPM_DVFS_CTRL_ACK(x)  ((x>>5)  & 0x00000001)
#define GET_SCP_SLEEP_REQ(x)         ((x>>0)  & 0x00000001)
#define GET_SCP_SLEEP_ACK(x)         ((x>>1)  & 0x00000001)
#define GET_PMIC_EINT_SCP(x)         ((x>>2)  & 0x00000001)
#define GET_SRCLKEN_RC_PWRAP_REQ(x)  ((x>>0)  & 0x00000001)
#define GET_PWRAP_SRCLKEN_RC_ACK(x)  ((x>>1)  & 0x00000001)
#define GET_SRCLKEN_RC_PWRAP_ADR(x)  ((x>>0)  & 0x0000ffff)
#define GET_SRCLKEN_RC_PWRAP_WDATA(x)  ((x>>16) & 0x0000ffff)
#define GET_MCU_PM_PWRAP_REQ(x)      ((x>>0)  & 0x00000001)
#define GET_PWRAP_MCU_PM_ACK(x)      ((x>>1)  & 0x00000001)
#define GET_MCU_PM_PWRAP_ADR(x)      ((x>>0)  & 0x0000ffff)
#define GET_MCU_PM_PWRAP_WDATA(x)    ((x>>16) & 0x0000ffff)
#define GET_CIPHER_KEY_SEL(x)        ((x>>0)  & 0x00000003)
#define GET_CIPHER_IV_SEL(x)         ((x>>0)  & 0x00000003)
#define GET_CIPHER_EN(x)             ((x>>0)  & 0x00000001)
#define GET_CIPHER_RDY(x)            ((x>>0)  & 0x00000003)
#define GET_CIPHER_MODE(x)           ((x>>0)  & 0x00000001)
#define GET_CIPHER_SWRST(x)          ((x>>0)  & 0x00000001)
#define GET_SYS_CK_DCM_EN(x)         ((x>>0)  & 0x00000001)
#define GET_SPI_CK_DCM_EN(x)         ((x>>1)  & 0x00000001)
#define GET_PCLK_MPU_EXCEPT_DCM_EN(x)  ((x>>2)  & 0x00000001)
#define GET_WACS_CK_DCM_EN(x)        ((x>>3)  & 0x00000001)
#define GET_MDINF_CK_DCM_EN(x)       ((x>>4)  & 0x00000001)
#define GET_C2KINF_CK_DCM_EN(x)      ((x>>5)  & 0x00000001)
#define GET_MD_DVFSINF_CK_DCM_EN(x)  ((x>>6)  & 0x00000001)
#define GET_SPMINF_CK_DCM_EN(x)      ((x>>7)  & 0x00000001)
#define GET_SPMINF_BACKUP_CK_DCM_EN(x)  ((x>>8)  & 0x00000001)
#define GET_SRCLKEN_RCINF_CK_DCM_EN(x)  ((x>>9)  & 0x00000001)
#define GET_DCXOINF_CK_DCM_EN(x)     ((x>>10) & 0x00000001)
#define GET_MCU_PMINF_CK_DCM_EN(x)   ((x>>11) & 0x00000001)
#define GET_MD_ADCINF_0_CK_DCM_EN(x)  ((x>>12) & 0x00000001)
#define GET_MD_ADCINF_1_CK_DCM_EN(x)  ((x>>13) & 0x00000001)
#define GET_GPSINF_0_CK_DCM_EN(x)    ((x>>14) & 0x00000001)
#define GET_GPSINF_1_CK_DCM_EN(x)    ((x>>15) & 0x00000001)
#define GET_STAUPD_CK_DCM_EN(x)      ((x>>16) & 0x00000001)
#define GET_MD32INF_CK_DCM_EN(x)     ((x>>17) & 0x00000001)
#define GET_ARBITER_CK_DCM_EN(x)     ((x>>18) & 0x00000001)
#define GET_CRC_CK_DCM_EN(x)         ((x>>19) & 0x00000001)
#define GET_INTCTL_CK_DCM_EN(x)      ((x>>20) & 0x00000001)
#define GET_WDTCTL_CK_DCM_EN(x)      ((x>>21) & 0x00000001)
#define GET_SPICTL_CK_DCM_EN(x)      ((x>>22) & 0x00000001)
#define GET_SYS_CK_DCM_DBC_PRD(x)    ((x>>0)  & 0x000000ff)
#define GET_SPI_CK_DCM_DBC_PRD(x)    ((x>>8)  & 0x000000ff)
#define GET_INT_GPS_AUXADC_CMD_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_INT_GPS_AUXADC_CMD_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_INT_GPS_AUXADC_CMD_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_INT_GPS_AUXADC_CMD_1(x)  ((x>>16) & 0x0000ffff)
#define GET_INT_GPS_AUXADC_RDATA_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_INT_GPS_AUXADC_RDATA_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_EXT_GPS_AUXADC_RDATA_ADDR(x)  ((x>>0)  & 0x0000ffff)
#define GET_GPS_PWRAP_REQ_0(x)       ((x>>0)  & 0x00000001)
#define GET_PWRAP_GPS_ACK_0(x)       ((x>>1)  & 0x00000001)
#define GET_PWRAP_GPS_RDATA_0(x)     ((x>>2)  & 0x00007fff)
#define GET_PWRAP_GPS_RDATA_VALID_0(x)  ((x>>17) & 0x00000001)
#define GET_GPSINF_0_FSM(x)          ((x>>18) & 0x00000007)
#define GET_GPS_PWRAP_REQ_1(x)       ((x>>0)  & 0x00000001)
#define GET_PWRAP_GPS_ACK_1(x)       ((x>>1)  & 0x00000001)
#define GET_PWRAP_GPS_RDATA_1(x)     ((x>>2)  & 0x00007fff)
#define GET_PWRAP_GPS_RDATA_VALID_1(x)  ((x>>17) & 0x00000001)
#define GET_GPSINF_1_FSM(x)          ((x>>18) & 0x00000007)
#define GET_MD_AUXADC_MODE_LATCH_SEL_0(x)  ((x>>0)  & 0x00000001)
#define GET_MD_AUXADC_MODE_LATCH_SEL_1(x)  ((x>>1)  & 0x00000001)
#define GET_MD_AUXADC_RDATA_LATEST_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_LATEST_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_WP_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_WP_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_0_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_0_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_1_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_1_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_2_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_2_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_3_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_3_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_4_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_4_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_5_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_5_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_6_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_6_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_7_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_7_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_8_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_8_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_9_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_9_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_10_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_10_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_11_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_11_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_12_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_12_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_13_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_13_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_14_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_14_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_15_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_15_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_16_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_16_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_17_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_17_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_18_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_18_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_19_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_19_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_20_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_20_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_21_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_21_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_22_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_22_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_23_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_23_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_24_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_24_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_25_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_25_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_26_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_26_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_27_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_27_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_28_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_28_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_29_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_29_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_30_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_30_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_31_ADDR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MD_AUXADC_RDATA_31_ADDR_1(x)  ((x>>16) & 0x0000ffff)
#define GET_MTS_PWRAP_REQ_0(x)       ((x>>0)  & 0x00000001)
#define GET_PWRAP_MTS_ACK_0(x)       ((x>>1)  & 0x00000001)
#define GET_PWRAP_MTS_RDATA_0(x)     ((x>>2)  & 0x0000ffff)
#define GET_PWRAP_MTS_RDATA_VALID_0(x)  ((x>>18) & 0x00000001)
#define GET_MD_ADCINF_0_FSM(x)       ((x>>19) & 0x00000007)
#define GET_MD_ADCINF_0_ALE_CNT(x)   ((x>>0)  & 0x0000003f)
#define GET_MD_ADCINF_0_DLE_CNT_REAL(x)  ((x>>6)  & 0x0000003f)
#define GET_MD_ADCINF_0_ALE_CNT_FULL(x)  ((x>>12) & 0x00000001)
#define GET_MD_ADCINF_0_DLE_CNT_FULL(x)  ((x>>13) & 0x00000001)
#define GET_MTS_PWRAP_REQ_1(x)       ((x>>0)  & 0x00000001)
#define GET_PWRAP_MTS_ACK_1(x)       ((x>>1)  & 0x00000001)
#define GET_PWRAP_MTS_RDATA_1(x)     ((x>>2)  & 0x0000ffff)
#define GET_PWRAP_MTS_RDATA_VALID_1(x)  ((x>>18) & 0x00000001)
#define GET_MD_ADCINF_1_FSM(x)       ((x>>19) & 0x00000007)
#define GET_MD_ADCINF_1_ALE_CNT(x)   ((x>>0)  & 0x0000003f)
#define GET_MD_ADCINF_1_DLE_CNT_REAL(x)  ((x>>6)  & 0x0000003f)
#define GET_MD_ADCINF_1_ALE_CNT_FULL(x)  ((x>>12) & 0x00000001)
#define GET_MD_ADCINF_1_DLE_CNT_FULL(x)  ((x>>13) & 0x00000001)
#define GET_SWRST(x)                 ((x>>0)  & 0x00000001)
#define GET_SPM_SLEEP_REQ_SEL(x)     ((x>>0)  & 0x00000003)
#define GET_SCP_SLEEP_REQ_SEL(x)     ((x>>2)  & 0x00000003)
#define GET_VALID_SPM_SLEEP_PROTECTION_CTRL(x)  ((x>>4)  & 0x00000003)
#define GET_VALID_SCP_SLEEP_PROTECTION_CTRL(x)  ((x>>6)  & 0x00000003)
#define GET_SPM_SLEEP_ACK_CONDITION(x)  ((x>>8)  & 0x00000003)
#define GET_SCP_SLEEP_ACK_CONDITION(x)  ((x>>10) & 0x00000003)
#define GET_SPM_SLEEP_ACK_AFTER_TIMER_CLK_GATED(x)  ((x>>12) & 0x00000001)
#define GET_SCP_SLEEP_ACK_AFTER_TIMER_CLK_GATED(x)  ((x>>13) & 0x00000001)
#define GET_SPM_SLEEP_ACK_ON_SCP_SLEEP_GATING(x)  ((x>>14) & 0x00000001)
#define GET_SPM_SLEEP_ACK_ON_SPI_EINT_MODE_GATING(x)  ((x>>15) & 0x00000001)
#define GET_SCP_SLEEP_ACK_ON_SPM_SLEEP_GATING(x)  ((x>>16) & 0x00000001)
#define GET_SCP_SLEEP_ACK_ON_SPI_EINT_MODE_GATING(x)  ((x>>17) & 0x00000001)
#define GET_SPM_SLEEP_GATING_CONDITION(x)  ((x>>0)  & 0x00000001)
#define GET_HARB_SPM_SLEEP_GATING(x)  ((x>>1)  & 0x00000001)
#define GET_WACS0_REQ_SPM_SLEEP_GATING(x)  ((x>>2)  & 0x00000001)
#define GET_WACS1_REQ_SPM_SLEEP_GATING(x)  ((x>>3)  & 0x00000001)
#define GET_WACS2_REQ_SPM_SLEEP_GATING(x)  ((x>>4)  & 0x00000001)
#define GET_WACS3_REQ_SPM_SLEEP_GATING(x)  ((x>>5)  & 0x00000001)
#define GET_WACS_P2P_REQ_SPM_SLEEP_GATING(x)  ((x>>6)  & 0x00000001)
#define GET_WACS_MD32_REQ_SPM_SLEEP_GATING(x)  ((x>>7)  & 0x00000001)
#define GET_MDINF_REQ_SPM_SLEEP_GATING(x)  ((x>>8)  & 0x00000001)
#define GET_C2KINF_REQ_SPM_SLEEP_GATING(x)  ((x>>9)  & 0x00000001)
#define GET_MD_DVFSINF_REQ_SPM_SLEEP_GATING(x)  ((x>>10) & 0x00000001)
#define GET_SPMINF_REQ_SPM_SLEEP_GATING(x)  ((x>>11) & 0x00000001)
#define GET_SPMINF_BACKUP_REQ_SPM_SLEEP_GATING(x)  ((x>>12) & 0x00000001)
#define GET_SRCLKEN_RCINF_REQ_SPM_SLEEP_GATING(x)  ((x>>13) & 0x00000001)
#define GET_DCXO_CONNINF_REQ_SPM_SLEEP_GATING(x)  ((x>>14) & 0x00000001)
#define GET_DCXO_NFCINF_REQ_SPM_SLEEP_GATING(x)  ((x>>15) & 0x00000001)
#define GET_MCU_PMINF_REQ_SPM_SLEEP_GATING(x)  ((x>>16) & 0x00000001)
#define GET_MD_ADCINF_0_REQ_SPM_SLEEP_GATING(x)  ((x>>17) & 0x00000001)
#define GET_MD_ADCINF_1_REQ_SPM_SLEEP_GATING(x)  ((x>>18) & 0x00000001)
#define GET_GPSINF_0_REQ_SPM_SLEEP_GATING(x)  ((x>>19) & 0x00000001)
#define GET_GPSINF_1_REQ_SPM_SLEEP_GATING(x)  ((x>>20) & 0x00000001)
#define GET_STAUPD_REQ_SPM_SLEEP_GATING(x)  ((x>>21) & 0x00000001)
#define GET_SCP_SLEEP_GATING_CONDITION(x)  ((x>>0)  & 0x00000001)
#define GET_HARB_SCP_SLEEP_GATING(x)  ((x>>1)  & 0x00000001)
#define GET_WACS0_REQ_SCP_SLEEP_GATING(x)  ((x>>2)  & 0x00000001)
#define GET_WACS1_REQ_SCP_SLEEP_GATING(x)  ((x>>3)  & 0x00000001)
#define GET_WACS2_REQ_SCP_SLEEP_GATING(x)  ((x>>4)  & 0x00000001)
#define GET_WACS3_REQ_SCP_SLEEP_GATING(x)  ((x>>5)  & 0x00000001)
#define GET_WACS_P2P_REQ_SCP_SLEEP_GATING(x)  ((x>>6)  & 0x00000001)
#define GET_WACS_MD32_REQ_SCP_SLEEP_GATING(x)  ((x>>7)  & 0x00000001)
#define GET_MDINF_REQ_SCP_SLEEP_GATING(x)  ((x>>8)  & 0x00000001)
#define GET_C2KINF_REQ_SCP_SLEEP_GATING(x)  ((x>>9)  & 0x00000001)
#define GET_MD_DVFSINF_REQ_SCP_SLEEP_GATING(x)  ((x>>10) & 0x00000001)
#define GET_SPMINF_REQ_SCP_SLEEP_GATING(x)  ((x>>11) & 0x00000001)
#define GET_SPMINF_BACKUP_REQ_SCP_SLEEP_GATING(x)  ((x>>12) & 0x00000001)
#define GET_DCXO_CONNINF_REQ_SCP_SLEEP_GATING(x)  ((x>>13) & 0x00000001)
#define GET_SRCLKEN_RCINF_REQ_SCP_SLEEP_GATING(x)  ((x>>14) & 0x00000001)
#define GET_DCXO_NFCINF_REQ_SCP_SLEEP_GATING(x)  ((x>>15) & 0x00000001)
#define GET_MCU_PMINF_REQ_SCP_SLEEP_GATING(x)  ((x>>16) & 0x00000001)
#define GET_MD_ADCINF_0_REQ_SCP_SLEEP_GATING(x)  ((x>>17) & 0x00000001)
#define GET_MD_ADCINF_1_REQ_SCP_SLEEP_GATING(x)  ((x>>18) & 0x00000001)
#define GET_GPSINF_0_REQ_SCP_SLEEP_GATING(x)  ((x>>19) & 0x00000001)
#define GET_GPSINF_1_REQ_SCP_SLEEP_GATING(x)  ((x>>20) & 0x00000001)
#define GET_STAUPD_REQ_SCP_SLEEP_GATING(x)  ((x>>21) & 0x00000001)
#define GET_WACS0_BUSY(x)            ((x>>0)  & 0x00000001)
#define GET_WACS1_BUSY(x)            ((x>>1)  & 0x00000001)
#define GET_WACS2_BUSY(x)            ((x>>2)  & 0x00000001)
#define GET_WACS3_BUSY(x)            ((x>>3)  & 0x00000001)
#define GET_WACS_P2P_BUSY(x)         ((x>>4)  & 0x00000001)
#define GET_WACS_MD32_BUSY(x)        ((x>>5)  & 0x00000001)
#define GET_MDINF_BUSY(x)            ((x>>6)  & 0x00000001)
#define GET_C2KINF_BUSY(x)           ((x>>7)  & 0x00000001)
#define GET_MD_DVFSINF_BUSY(x)       ((x>>8)  & 0x00000001)
#define GET_SPMINF_BUSY(x)           ((x>>9)  & 0x00000001)
#define GET_SPMINF_BACKUP_BUSY(x)    ((x>>10) & 0x00000001)
#define GET_SRCLKEN_RCINF_BUSY(x)    ((x>>11) & 0x00000001)
#define GET_DCXO_CONNINF_BUSY(x)     ((x>>12) & 0x00000001)
#define GET_DCXO_NFCINF_BUSY(x)      ((x>>13) & 0x00000001)
#define GET_MCU_PMINF_BUSY(x)        ((x>>14) & 0x00000001)
#define GET_MD_ADCINF_0_BUSY(x)      ((x>>15) & 0x00000001)
#define GET_MD_ADCINF_1_BUSY(x)      ((x>>16) & 0x00000001)
#define GET_GPSINF_0_BUSY(x)         ((x>>17) & 0x00000001)
#define GET_GPSINF_1_BUSY(x)         ((x>>18) & 0x00000001)
#define GET_STAUPD_BUSY(x)           ((x>>19) & 0x00000001)
#define GET_MD32INF_BUSY(x)          ((x>>20) & 0x00000001)
#define GET_AG_HARB_REQ_EMPTY(x)     ((x>>21) & 0x00000001)
#define GET_WRAP_MUX_REQ(x)          ((x>>22) & 0x00000001)
#define GET_WRAP_AG_DLE_RESTCNT_EMPTY(x)  ((x>>23) & 0x00000001)
#define GET_MAN_BUSY(x)              ((x>>24) & 0x00000001)
#define GET_SYNC_IDLE(x)             ((x>>25) & 0x00000001)
#define GET_SYS_IDLE_NO_PSEL(x)      ((x>>26) & 0x00000001)
#define GET_SYS_IDLE(x)              ((x>>27) & 0x00000001)
#define GET_SPI_IDLE(x)              ((x>>28) & 0x00000001)
#define GET_PWRAP_IDLE(x)            ((x>>29) & 0x00000001)
#define GET_WACS0_BUSY_LATCHED_WDT(x)  ((x>>0)  & 0x00000001)
#define GET_WACS1_BUSY_LATCHED_WDT(x)  ((x>>1)  & 0x00000001)
#define GET_WACS2_BUSY_LATCHED_WDT(x)  ((x>>2)  & 0x00000001)
#define GET_WACS3_BUSY_LATCHED_WDT(x)  ((x>>3)  & 0x00000001)
#define GET_WACS_P2P_BUSY_LATCHED_WDT(x)  ((x>>4)  & 0x00000001)
#define GET_WACS_MD32_BUSY_LATCHED_WDT(x)  ((x>>5)  & 0x00000001)
#define GET_MDINF_BUSY_LATCHED_WDT(x)  ((x>>6)  & 0x00000001)
#define GET_C2KINF_BUSY_LATCHED_WDT(x)  ((x>>7)  & 0x00000001)
#define GET_MD_DVFSINF_BUSY_LATCHED_WDT(x)  ((x>>8)  & 0x00000001)
#define GET_SPMINF_BUSY_LATCHED_WDT(x)  ((x>>9)  & 0x00000001)
#define GET_SPMINF_BACKUP_BUSY_LATCHED_WDT(x)  ((x>>10) & 0x00000001)
#define GET_SRCLKEN_RCINF_BUSY_LATCHED_WDT(x)  ((x>>11) & 0x00000001)
#define GET_DCXO_CONNINF_BUSY_LATCHED_WDT(x)  ((x>>12) & 0x00000001)
#define GET_DCXO_NFCINF_BUSY_LATCHED_WDT(x)  ((x>>13) & 0x00000001)
#define GET_MCU_PMINF_BUSY_LATCHED_WDT(x)  ((x>>14) & 0x00000001)
#define GET_MD_ADCINF_0_BUSY_LATCHED_WDT(x)  ((x>>15) & 0x00000001)
#define GET_MD_ADCINF_1_BUSY_LATCHED_WDT(x)  ((x>>16) & 0x00000001)
#define GET_GPSINF_0_BUSY_LATCHED_WDT(x)  ((x>>17) & 0x00000001)
#define GET_GPSINF_1_BUSY_LATCHED_WDT(x)  ((x>>18) & 0x00000001)
#define GET_STAUPD_BUSY_LATCHED_WDT(x)  ((x>>19) & 0x00000001)
#define GET_MD32INF_BUSY_LATCHED_WDT(x)  ((x>>20) & 0x00000001)
#define GET_AG_HARB_REQ_EMPTY_LATCHED_WDT(x)  ((x>>21) & 0x00000001)
#define GET_WRAP_MUX_REQ_LATCHED_WDT(x)  ((x>>22) & 0x00000001)
#define GET_WRAP_AG_DLE_RESTCNT_EMPTY_LATCHED_WDT(x)  ((x>>23) & 0x00000001)
#define GET_MAN_BUSY_LATCHED_WDT(x)  ((x>>24) & 0x00000001)
#define GET_SYNC_IDLE_LATCHED_WDT(x)  ((x>>25) & 0x00000001)
#define GET_SYS_IDLE_NO_PSEL_LATCHED_WDT(x)  ((x>>26) & 0x00000001)
#define GET_SYS_IDLE_LATCHED_WDT(x)  ((x>>27) & 0x00000001)
#define GET_SPI_IDLE_LATCHED_WDT(x)  ((x>>28) & 0x00000001)
#define GET_PWRAP_IDLE_LATCHED_WDT(x)  ((x>>29) & 0x00000001)
#define GET_ARBITER_SEL_CH0(x)       ((x>>0)  & 0x0000001f)
#define GET_ARBITER_SEL_CH1(x)       ((x>>8)  & 0x0000001f)
#define GET_ARBITER_SEL_CH2(x)       ((x>>16) & 0x0000001f)
#define GET_ARBITER_SEL_CH3(x)       ((x>>24) & 0x0000001f)
#define GET_ARBITER_SEL_CH4(x)       ((x>>0)  & 0x0000001f)
#define GET_ARBITER_SEL_CH5(x)       ((x>>8)  & 0x0000001f)
#define GET_ARBITER_SEL_CH6(x)       ((x>>16) & 0x0000001f)
#define GET_ARBITER_SEL_CH7(x)       ((x>>24) & 0x0000001f)
#define GET_ARBITER_SEL_CH8(x)       ((x>>0)  & 0x0000001f)
#define GET_ARBITER_SEL_CH9(x)       ((x>>8)  & 0x0000001f)
#define GET_ARBITER_SEL_CH10(x)      ((x>>16) & 0x0000001f)
#define GET_ARBITER_SEL_CH11(x)      ((x>>24) & 0x0000001f)
#define GET_ARBITER_SEL_CH12(x)      ((x>>0)  & 0x0000001f)
#define GET_ARBITER_SEL_CH13(x)      ((x>>8)  & 0x0000001f)
#define GET_ARBITER_SEL_CH14(x)      ((x>>16) & 0x0000001f)
#define GET_ARBITER_SEL_CH15(x)      ((x>>24) & 0x0000001f)
#define GET_ARBITER_SEL_CH16(x)      ((x>>0)  & 0x0000001f)
#define GET_ARBITER_OUT_MDINF_SEL(x)  ((x>>0)  & 0x0000001f)
#define GET_ARBITER_OUT_MD_DVFSINF_SEL(x)  ((x>>8)  & 0x0000001f)
#define GET_ARBITER_OUT_WACS0_SEL(x)  ((x>>16) & 0x0000001f)
#define GET_ARBITER_OUT_SPMINF_SEL(x)  ((x>>24) & 0x0000001f)
#define GET_ARBITER_OUT_WACS_MD32_SEL(x)  ((x>>0)  & 0x0000001f)
#define GET_ARBITER_OUT_SRCLKEN_RCINF_SEL(x)  ((x>>8)  & 0x0000001f)
#define GET_ARBITER_OUT_DCXO_CONNINF_SEL(x)  ((x>>16) & 0x0000001f)
#define GET_ARBITER_OUT_DCXO_NFCINF_SEL(x)  ((x>>24) & 0x0000001f)
#define GET_ARBITER_OUT_STAUPD_SEL(x)  ((x>>0)  & 0x0000001f)
#define GET_ARBITER_OUT_MD_ADCINF_0_SEL(x)  ((x>>8)  & 0x0000001f)
#define GET_ARBITER_OUT_MD_ADCINF_1_SEL(x)  ((x>>16) & 0x0000001f)
#define GET_ARBITER_OUT_GPSINF_0_SEL(x)  ((x>>24) & 0x0000001f)
#define GET_ARBITER_OUT_GPSINF_1_SEL(x)  ((x>>0)  & 0x0000001f)
#define GET_ARBITER_OUT_WACS2_SEL(x)  ((x>>8)  & 0x0000001f)
#define GET_ARBITER_OUT_WACS1_SEL(x)  ((x>>16) & 0x0000001f)
#define GET_ARBITER_OUT_WACS3_SEL(x)  ((x>>24) & 0x0000001f)
#define GET_ARBITER_OUT_WACS_P2P_SEL(x)  ((x>>0)  & 0x0000001f)
#define GET_STARV_COUNTER0_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER0_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER1_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER1_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER2_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER2_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER3_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER3_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER4_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER4_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER5_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER5_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER6_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER6_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER7_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER7_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER8_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER8_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER9_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER9_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER10_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER10_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER11_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER11_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER12_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER12_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER13_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER13_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER14_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER14_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER15_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER15_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER16_TARGET(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER16_ENABLE(x)  ((x>>10) & 0x00000001)
#define GET_STARV_INT_EN(x)          ((x>>0)  & 0x00000001)
#define GET_STARV_COUNTER0_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER0(x)        ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER1_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER1(x)        ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER2_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER2(x)        ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER3_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER3(x)        ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER4_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER4(x)        ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER5_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER5(x)        ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER6_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER6(x)        ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER7_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER7(x)        ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER8_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER8(x)        ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER9_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER9(x)        ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER10_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER10(x)       ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER11_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER11(x)       ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER12_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER12(x)       ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER13_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER13(x)       ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER14_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER14(x)       ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER15_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER15(x)       ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER16_GATED(x)  ((x>>0)  & 0x000003ff)
#define GET_STARV_COUNTER16(x)       ((x>>10) & 0x000003ff)
#define GET_STARV_COUNTER0_CLR(x)    ((x>>0)  & 0x00000001)
#define GET_STARV_COUNTER1_CLR(x)    ((x>>1)  & 0x00000001)
#define GET_STARV_COUNTER2_CLR(x)    ((x>>2)  & 0x00000001)
#define GET_STARV_COUNTER3_CLR(x)    ((x>>3)  & 0x00000001)
#define GET_STARV_COUNTER4_CLR(x)    ((x>>4)  & 0x00000001)
#define GET_STARV_COUNTER5_CLR(x)    ((x>>5)  & 0x00000001)
#define GET_STARV_COUNTER6_CLR(x)    ((x>>6)  & 0x00000001)
#define GET_STARV_COUNTER7_CLR(x)    ((x>>7)  & 0x00000001)
#define GET_STARV_COUNTER8_CLR(x)    ((x>>8)  & 0x00000001)
#define GET_STARV_COUNTER9_CLR(x)    ((x>>9)  & 0x00000001)
#define GET_STARV_COUNTER10_CLR(x)   ((x>>10) & 0x00000001)
#define GET_STARV_COUNTER11_CLR(x)   ((x>>11) & 0x00000001)
#define GET_STARV_COUNTER12_CLR(x)   ((x>>12) & 0x00000001)
#define GET_STARV_COUNTER13_CLR(x)   ((x>>13) & 0x00000001)
#define GET_STARV_COUNTER14_CLR(x)   ((x>>14) & 0x00000001)
#define GET_STARV_COUNTER15_CLR(x)   ((x>>15) & 0x00000001)
#define GET_STARV_COUNTER16_CLR(x)   ((x>>16) & 0x00000001)
#define GET_AG_ARB_HPRIO_STARV(x)    ((x>>0)  & 0x0001ffff)
#define GET_MONITOR_MODE(x)          ((x>>0)  & 0x00000003)
#define GET_MONITOR_TARGET_0_EN(x)   ((x>>2)  & 0x00000001)
#define GET_MONITOR_TARGET_1_EN(x)   ((x>>3)  & 0x00000001)
#define GET_MONITOR_TARGET_2_EN(x)   ((x>>4)  & 0x00000001)
#define GET_MONITOR_TARGET_3_EN(x)   ((x>>5)  & 0x00000001)
#define GET_MONITOR_TARGET_4_EN(x)   ((x>>6)  & 0x00000001)
#define GET_MONITOR_TARGET_5_EN(x)   ((x>>7)  & 0x00000001)
#define GET_MONITOR_TARGET_6_EN(x)   ((x>>8)  & 0x00000001)
#define GET_MONITOR_TARGET_7_EN(x)   ((x>>9)  & 0x00000001)
#define GET_MONITOR_STOP_AFTER_INT(x)  ((x>>10) & 0x00000001)
#define GET_MONITOR_RST(x)           ((x>>11) & 0x00000001)
#define GET_MONITOR_RECORD_CNT(x)    ((x>>12) & 0x0000003f)
#define GET_MONITOR_TARGET_CHANNEL_0(x)  ((x>>0)  & 0x00000000)
#define GET_MONITOR_TARGET_CHANNEL_1(x)  ((x>>0)  & 0x00000000)
#define GET_MONITOR_TARGET_CHANNEL_2(x)  ((x>>0)  & 0x00000000)
#define GET_MONITOR_TARGET_CHANNEL_3(x)  ((x>>0)  & 0x00000000)
#define GET_MONITOR_TARGET_CHANNEL_4(x)  ((x>>0)  & 0x00000000)
#define GET_MONITOR_TARGET_CHANNEL_5(x)  ((x>>0)  & 0x00000000)
#define GET_MONITOR_TARGET_CHANNEL_6(x)  ((x>>0)  & 0x00000000)
#define GET_MONITOR_TARGET_CHANNEL_7(x)  ((x>>0)  & 0x00000000)
#define GET_MONITOR_TARGET_WRITE_0(x)  ((x>>0)  & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_0_MASK(x)  ((x>>1)  & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_1(x)  ((x>>2)  & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_1_MASK(x)  ((x>>3)  & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_2(x)  ((x>>4)  & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_2_MASK(x)  ((x>>5)  & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_3(x)  ((x>>6)  & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_3_MASK(x)  ((x>>7)  & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_4(x)  ((x>>8)  & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_4_MASK(x)  ((x>>9)  & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_5(x)  ((x>>10) & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_5_MASK(x)  ((x>>11) & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_6(x)  ((x>>12) & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_6_MASK(x)  ((x>>13) & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_7(x)  ((x>>14) & 0x00000001)
#define GET_MONITOR_TARGET_WRITE_7_MASK(x)  ((x>>15) & 0x00000001)
#define GET_MONITOR_TARGET_ADR_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_0_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_1(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_1_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_2(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_2_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_3(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_3_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_4(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_4_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_5(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_5_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_6(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_6_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_7(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_ADR_7_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_0(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_0_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_1(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_1_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_2(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_2_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_3(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_3_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_4(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_4_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_5(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_5_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_6(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_6_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_7(x)  ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_TARGET_WDATA_7_MASK(x)  ((x>>16) & 0x0000ffff)
#define GET_MONITOR_CHANNEL_0(x)     ((x>>0)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_1(x)     ((x>>8)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_2(x)     ((x>>16) & 0x0000001f)
#define GET_MONITOR_CHANNEL_3(x)     ((x>>24) & 0x0000001f)
#define GET_MONITOR_CHANNEL_4(x)     ((x>>0)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_5(x)     ((x>>8)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_6(x)     ((x>>16) & 0x0000001f)
#define GET_MONITOR_CHANNEL_7(x)     ((x>>24) & 0x0000001f)
#define GET_MONITOR_CHANNEL_8(x)     ((x>>0)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_9(x)     ((x>>8)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_10(x)    ((x>>16) & 0x0000001f)
#define GET_MONITOR_CHANNEL_11(x)    ((x>>24) & 0x0000001f)
#define GET_MONITOR_CHANNEL_12(x)    ((x>>0)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_13(x)    ((x>>8)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_14(x)    ((x>>16) & 0x0000001f)
#define GET_MONITOR_CHANNEL_15(x)    ((x>>24) & 0x0000001f)
#define GET_MONITOR_CHANNEL_16(x)    ((x>>0)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_17(x)    ((x>>8)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_18(x)    ((x>>16) & 0x0000001f)
#define GET_MONITOR_CHANNEL_19(x)    ((x>>24) & 0x0000001f)
#define GET_MONITOR_CHANNEL_20(x)    ((x>>0)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_21(x)    ((x>>8)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_22(x)    ((x>>16) & 0x0000001f)
#define GET_MONITOR_CHANNEL_23(x)    ((x>>24) & 0x0000001f)
#define GET_MONITOR_CHANNEL_24(x)    ((x>>0)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_25(x)    ((x>>8)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_26(x)    ((x>>16) & 0x0000001f)
#define GET_MONITOR_CHANNEL_27(x)    ((x>>24) & 0x0000001f)
#define GET_MONITOR_CHANNEL_28(x)    ((x>>0)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_29(x)    ((x>>8)  & 0x0000001f)
#define GET_MONITOR_CHANNEL_30(x)    ((x>>16) & 0x0000001f)
#define GET_MONITOR_CHANNEL_31(x)    ((x>>24) & 0x0000001f)
#define GET_MONITOR_WRITE_0(x)       ((x>>0)  & 0x00000001)
#define GET_MONITOR_WRITE_1(x)       ((x>>1)  & 0x00000001)
#define GET_MONITOR_WRITE_2(x)       ((x>>2)  & 0x00000001)
#define GET_MONITOR_WRITE_3(x)       ((x>>3)  & 0x00000001)
#define GET_MONITOR_WRITE_4(x)       ((x>>4)  & 0x00000001)
#define GET_MONITOR_WRITE_5(x)       ((x>>5)  & 0x00000001)
#define GET_MONITOR_WRITE_6(x)       ((x>>6)  & 0x00000001)
#define GET_MONITOR_WRITE_7(x)       ((x>>7)  & 0x00000001)
#define GET_MONITOR_WRITE_8(x)       ((x>>8)  & 0x00000001)
#define GET_MONITOR_WRITE_9(x)       ((x>>9)  & 0x00000001)
#define GET_MONITOR_WRITE_10(x)      ((x>>10) & 0x00000001)
#define GET_MONITOR_WRITE_11(x)      ((x>>11) & 0x00000001)
#define GET_MONITOR_WRITE_12(x)      ((x>>12) & 0x00000001)
#define GET_MONITOR_WRITE_13(x)      ((x>>13) & 0x00000001)
#define GET_MONITOR_WRITE_14(x)      ((x>>14) & 0x00000001)
#define GET_MONITOR_WRITE_15(x)      ((x>>15) & 0x00000001)
#define GET_MONITOR_WRITE_16(x)      ((x>>16) & 0x00000001)
#define GET_MONITOR_WRITE_17(x)      ((x>>17) & 0x00000001)
#define GET_MONITOR_WRITE_18(x)      ((x>>18) & 0x00000001)
#define GET_MONITOR_WRITE_19(x)      ((x>>19) & 0x00000001)
#define GET_MONITOR_WRITE_20(x)      ((x>>20) & 0x00000001)
#define GET_MONITOR_WRITE_21(x)      ((x>>21) & 0x00000001)
#define GET_MONITOR_WRITE_22(x)      ((x>>22) & 0x00000001)
#define GET_MONITOR_WRITE_23(x)      ((x>>23) & 0x00000001)
#define GET_MONITOR_WRITE_24(x)      ((x>>24) & 0x00000001)
#define GET_MONITOR_WRITE_25(x)      ((x>>25) & 0x00000001)
#define GET_MONITOR_WRITE_26(x)      ((x>>26) & 0x00000001)
#define GET_MONITOR_WRITE_27(x)      ((x>>27) & 0x00000001)
#define GET_MONITOR_WRITE_28(x)      ((x>>28) & 0x00000001)
#define GET_MONITOR_WRITE_29(x)      ((x>>29) & 0x00000001)
#define GET_MONITOR_WRITE_30(x)      ((x>>30) & 0x00000001)
#define GET_MONITOR_WRITE_31(x)      ((x>>31) & 0x00000001)
#define GET_MONITOR_ADR_0(x)         ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_1(x)         ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_2(x)         ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_3(x)         ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_4(x)         ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_5(x)         ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_6(x)         ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_7(x)         ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_8(x)         ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_9(x)         ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_10(x)        ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_11(x)        ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_12(x)        ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_13(x)        ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_14(x)        ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_15(x)        ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_16(x)        ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_17(x)        ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_18(x)        ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_19(x)        ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_20(x)        ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_21(x)        ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_22(x)        ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_23(x)        ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_24(x)        ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_25(x)        ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_26(x)        ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_27(x)        ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_28(x)        ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_29(x)        ((x>>16) & 0x0000ffff)
#define GET_MONITOR_ADR_30(x)        ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_ADR_31(x)        ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_0(x)       ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_1(x)       ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_2(x)       ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_3(x)       ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_4(x)       ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_5(x)       ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_6(x)       ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_7(x)       ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_8(x)       ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_9(x)       ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_10(x)      ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_11(x)      ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_12(x)      ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_13(x)      ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_14(x)      ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_15(x)      ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_16(x)      ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_17(x)      ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_18(x)      ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_19(x)      ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_20(x)      ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_21(x)      ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_22(x)      ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_23(x)      ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_24(x)      ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_25(x)      ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_26(x)      ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_27(x)      ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_28(x)      ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_29(x)      ((x>>16) & 0x0000ffff)
#define GET_MONITOR_WDATA_30(x)      ((x>>0)  & 0x0000ffff)
#define GET_MONITOR_WDATA_31(x)      ((x>>16) & 0x0000ffff)
#define GET_SYS_IDLE_WITH_PSEL_M(x)  ((x>>0)  & 0x00000001)
#define GET_SYS_IDLE_FOR_SLEEP_ACK_WITHOUT_PSEL(x)  ((x>>1)  & 0x00000001)
#define GET_GPSINF_BUSY_WITHOUT_SPM_SLEEP_REQ(x)  ((x>>2)  & 0x00000001)
#define GET_GPSINF_BUSY_WITHOUT_SCP_SLEEP_REQ(x)  ((x>>3)  & 0x00000001)
#define GET_CIPHER_FIFO_RD_RX_MUST_BE_BEFORE_TX(x)  ((x>>4)  & 0x00000001)
#define GET_BWC_OPTIONS_RESERVED(x)  ((x>>5)  & 0x07ffffff)
#define GET_WACS0_WDATA(x)           ((x>>0)  & 0x0000ffff)
#define GET_WACS0_ADR(x)             ((x>>16) & 0x00007fff)
#define GET_WACS0_WRITE(x)           ((x>>31) & 0x00000001)
#define GET_WACS0_RDATA(x)           ((x>>0)  & 0x0000ffff)
#define GET_WACS0_FSM(x)             ((x>>16) & 0x00000007)
#define GET_WACS0_REQ(x)             ((x>>19) & 0x00000001)
#define GET_SYNC_IDLE0(x)            ((x>>20) & 0x00000001)
#define GET_WACS0_EN(x)              ((x>>21) & 0x00000001)
#define GET_WACS0_INIT_DONE0(x)      ((x>>22) & 0x00000001)
#define GET_SYS_IDLE0(x)             ((x>>23) & 0x00000001)
#define GET_WACS0_FIFO_FILLCNT(x)    ((x>>24) & 0x0000000f)
#define GET_WACS0_FIFO_FREECNT(x)    ((x>>28) & 0x0000000f)
#define GET_WACS0_VLDCLR(x)          ((x>>0)  & 0x00000001)
#define GET_WACS1_WDATA(x)           ((x>>0)  & 0x0000ffff)
#define GET_WACS1_ADR(x)             ((x>>16) & 0x00007fff)
#define GET_WACS1_WRITE(x)           ((x>>31) & 0x00000001)
#define GET_WACS1_RDATA(x)           ((x>>0)  & 0x0000ffff)
#define GET_WACS1_FSM(x)             ((x>>16) & 0x00000007)
#define GET_WACS1_REQ(x)             ((x>>19) & 0x00000001)
#define GET_SYNC_IDLE1(x)            ((x>>20) & 0x00000001)
#define GET_WACS1_EN(x)              ((x>>21) & 0x00000001)
#define GET_WACS1_INIT_DONE1(x)      ((x>>22) & 0x00000001)
#define GET_SYS_IDLE1(x)             ((x>>23) & 0x00000001)
#define GET_WACS1_FIFO_FILLCNT(x)    ((x>>24) & 0x0000000f)
#define GET_WACS1_FIFO_FREECNT(x)    ((x>>28) & 0x0000000f)
#define GET_WACS1_VLDCLR(x)          ((x>>0)  & 0x00000001)
#define GET_WACS2_WDATA(x)           ((x>>0)  & 0x0000ffff)
#define GET_WACS2_ADR(x)             ((x>>16) & 0x00007fff)
#define GET_WACS2_WRITE(x)           ((x>>31) & 0x00000001)
#define GET_WACS2_RDATA(x)           ((x>>0)  & 0x0000ffff)
#define GET_WACS2_FSM(x)             ((x>>16) & 0x00000007)
#define GET_WACS2_REQ(x)             ((x>>19) & 0x00000001)
#define GET_SYNC_IDLE2(x)            ((x>>20) & 0x00000001)
#define GET_WACS2_EN(x)              ((x>>21) & 0x00000001)
#define GET_WACS2_INIT_DONE2(x)      ((x>>22) & 0x00000001)
#define GET_SYS_IDLE2(x)             ((x>>23) & 0x00000001)
#define GET_WACS2_FIFO_FILLCNT(x)    ((x>>24) & 0x0000000f)
#define GET_WACS2_FIFO_FREECNT(x)    ((x>>28) & 0x0000000f)
#define GET_WACS2_VLDCLR(x)          ((x>>0)  & 0x00000001)
#define GET_WACS3_WDATA(x)           ((x>>0)  & 0x0000ffff)
#define GET_WACS3_ADR(x)             ((x>>16) & 0x00007fff)
#define GET_WACS3_WRITE(x)           ((x>>31) & 0x00000001)
#define GET_WACS3_RDATA(x)           ((x>>0)  & 0x0000ffff)
#define GET_WACS3_FSM(x)             ((x>>16) & 0x00000007)
#define GET_WACS3_REQ(x)             ((x>>19) & 0x00000001)
#define GET_SYNC_IDLE3(x)            ((x>>20) & 0x00000001)
#define GET_WACS3_EN(x)              ((x>>21) & 0x00000001)
#define GET_WACS3_INIT_DONE3(x)      ((x>>22) & 0x00000001)
#define GET_SYS_IDLE3(x)             ((x>>23) & 0x00000001)
#define GET_WACS3_FIFO_FILLCNT(x)    ((x>>24) & 0x0000000f)
#define GET_WACS3_FIFO_FREECNT(x)    ((x>>28) & 0x0000000f)
#define GET_WACS3_VLDCLR(x)          ((x>>0)  & 0x00000001)

#endif //__PMIC_WRAP_REGS_HMAC__

